package edu.yctc.weblog.controller;

import javax.servlet.http.HttpServletRequest;

public interface WeblogController {

    public String showIndex(HttpServletRequest request);

    /**
     * 首页分页数据
     * 
     * @param request
     * @param pageNum
     * @return
     */
    public String page(HttpServletRequest request, int pageNum);

    /**
     * 文章检索
     * 
     * @param request
     * @param keyword
     * @return
     */
    public String searchByKeword(HttpServletRequest request, String keyword);

    /**
     * 文章分页检索
     * 
     * @param request
     * @param keyword
     * @param page
     * @return
     */
    public String searchByKewordAndPage(HttpServletRequest request, String keyword, Integer page);

    /**
     * 标签检索列表页
     * 
     * @param request
     * @param tagName
     * @return
     */
    public String showBlogListByTagName(HttpServletRequest request, String tagName);

    public String showBlogListByTagNameAndPage(HttpServletRequest request, String tagName, Integer page);

    /**
     * 文章详情
     * 
     * @param request
     * @param blogId
     * @return
     */
    public String blogDetail(HttpServletRequest request, Long blogId, Integer commentPage);

    /**
     * 友情链接页
     * 
     * @param request
     * @return
     */
    public String showLink(HttpServletRequest request);

    /**
     * 关于页以及其他配置了subUrl的文章页
     * 
     * @param request
     * @param subUrl
     * @return
     */
    public String showSubUrlBlog(HttpServletRequest request, String subUrl);

    public String showCategory(HttpServletRequest request, String categoryName);

    public String category(HttpServletRequest request, String categoryName, Integer page);

}
